//
//  DDContactRequestMessage.h
//  DingDongZP
//
//  Created by Ray on 16/4/26.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import <RongIMLib/RongIMLib.h>

typedef NS_ENUM(NSInteger, DDContactRequestType)
{
    DDContactRequestPhone,
    DDContactRequestWeixin
};

typedef NS_ENUM(NSInteger, DDContactRequestActionType)
{
    DDContactRequestActionRequest,
    DDContactRequestActionRefuse,
    DDContactRequestActionAccept
};

/**
 *  @brief 请求联系方式的消息
 *  发送请求时，带入自己的相关数据，对方接受时则直接显示相应数据
 *  接受时，带入自己的数据
 */
@interface DDContactRequestMessage : RCMessageContent

@property (nonatomic, assign) DDContactRequestType requestType;
@property (nonatomic, assign) DDContactRequestActionType requestAction;
/**
 * 发送方显示的
 */
@property (nonatomic, copy) NSString *requestContent;

/**
 *  接收方显示的
 */
@property (nonatomic, copy) NSString *replyContent;

/**
 *  交换手机/微信  的发起时间
 */

@property (nonatomic, copy)NSString  *changeTime;

@property (nonatomic, copy) NSString *msgid;

- (instancetype)initWithRequestType:(DDContactRequestType)requestType requestAction:(DDContactRequestActionType)action;

@end
